import request from '@/utils/request'

// 能耗额度评估

// 列表   错误码300061
export function list(params) {
    return request({
        url: '/energy/quota-assess/list',
        method: 'get',
        params
    })
}

// 额度评估  错误码300062
export function quotaAssess(data) {
    return request({
        url: '/energy/quota-assess/quotaAssess',
        method: 'post',
        data
    })
}

// 额度评估  错误码300063
export function energyData(data) {
    return request({
        url: '/energy/quota-assess/energyData',
        method: 'post',
        data
    })
}


// 额度标准版本号  错误码300064
export function rationVersionList(params) {
    return request({
        url: '/energy/ration-criterion/versionList',
        method: 'get',
        params
    })
}

// 用电价格版本号 错误码300065
export function priceVersionList(params) {
    return request({
        url: '/energy/price-manage/versionList',
        method: 'get',
        params
    })
}

// 气温与能耗关系详情 错误码300066
export function barometerData(query) {
    return request({
        url: '/system/solar-terms/statisticsPieChart',
        method: 'get',
        params: query
    })
}

// 详情 错误码300067
export function detail(id) {
    return request({
        url: `/energy/quota-assess/detail/${id}`,
        method: 'get',
    })
}
